package com.csi.juegoweb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.csi.juegoweb.dao.DonacionDAO;
import com.csi.juegoweb.domain.Donacion;
import com.csi.juegoweb.service.DonacionService;

@Repository("donacionService")
public class DonacionServiceImpl implements DonacionService{
	
	@Autowired
	private DonacionDAO donacionDAO;
	
	@Override
	public List<Donacion> getDonaciones() {
		// TODO Auto-generated method stub
		return donacionDAO.findAll();
	}

	@Override
	public void eliminar(Integer codonacion) {
		// TODO Auto-generated method stub
		donacionDAO.delete(donacionDAO.findById(codonacion));
	}

	@Override
	public void crear(Donacion danacion) {
		// TODO Auto-generated method stub
		donacionDAO.save(danacion);
		
	}

	@Override
	public Donacion findById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List findByExample(Donacion instance) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List findByProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Donacion> findByProperty(String propertyNameOne,
			Object valueOne, String propertyNameTwo, Object valueTwo) {
		// TODO Auto-generated method stub
		return donacionDAO.findByProperty(propertyNameOne, valueOne, propertyNameTwo, valueTwo);
	}

	@Override
	public List findByCoJugdes(Object coJugdes) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List findByFlConfirn(Object flConfirn) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List findByNuMonto(Object nuMonto) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Donacion merge(Donacion detachedInstance) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void attachDirty(Donacion instance) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void attachClean(Donacion instance) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Donacion findByPropertys(String propertyNameOne, Object valueOne,
			String propertyNameTwo, Object valueTwo) {
		// TODO Auto-generated method stub
		return donacionDAO.findByPropertys(propertyNameOne, valueOne, propertyNameTwo, valueTwo);
	}

}
